#!/bin/sh -xe

server_name=puppeteer-shot

docker stop ${server_name} || true

docker rm ${server_name} || true

docker build --rm --no-cache=true  -t ${server_name} .

docker run -d --privileged=true --name ${server_name} -p 7002:7002 ${server_name}

docker rmi $(docker images | grep "none" | awk '{print $3}') || true
